package com.tonyodev.fetch2core;

/**
 * Callback interface used by Fetch to return
 * results to the caller.
 *
 * @param <R> r
 * @since 2021-05-18
 */
@FunctionalInterface
public interface Func<R> {
    /**
     * Method called by Fetch to return requested information back to the caller.
     *
     * @param result Result of a request made by a caller. Result is never null.
     */
    void call(R result);
}